package com.ruoyi.web.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 tb_shop
 *
 * @author ruoyi
 * @date 2024-03-17
 */
@Data
public class TbShop extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 标签id
     */
    @Excel(name = "标签id")
    private Long labelId;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String name;

    /**
     * 商品描述
     */
    @Excel(name = "商品描述")
    private String message;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String img;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal price;

    /**
     * 划线价
     */
    @Excel(name = "划线价")
    private BigDecimal scribPrice;
    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long inventory;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("labelId", getLabelId())
                .append("name", getName())
                .append("message", getMessage())
                .append("img", getImg())
                .append("price", getPrice())
                .append("scribPrice", getScribPrice())
                .append("inventory", getInventory())
                .toString();
    }
}
